package org.jeecg.modules.flowermater.service;

import org.jeecg.modules.flowermater.entity.FlowerMaterialIn;
import org.jeecg.modules.flowermater.entity.FlowerMaterialInMain;
import com.baomidou.mybatisplus.extension.service.IService;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 采后物资入库主表
 * @Author: jeecg-boot
 * @Date:   2022-07-13
 * @Version: V1.0
 */
public interface IFlowerMaterialInMainService extends IService<FlowerMaterialInMain> {

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(FlowerMaterialInMain flowerMaterialInMain,List<FlowerMaterialIn> flowerMaterialInList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(FlowerMaterialInMain flowerMaterialInMain,List<FlowerMaterialIn> flowerMaterialInList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);


	/**
	 *
	 * 采后物资入库主表-库管确认
	 * @param flowerMaterialInMain
	 * @param flowerMaterialInList
	 */
	public void updateBookSure (FlowerMaterialInMain flowerMaterialInMain,List<FlowerMaterialIn> flowerMaterialInList);


	/**
	 * 采后物资入库主表-库管取消确认
	 * @param flowerMaterialInMain
	 */
	public void updateBookSureBack (FlowerMaterialInMain flowerMaterialInMain);

}
